package com.sq.partner.manager.dao.impl;

import com.sq.partner.manager.dao.HaidaStageInfoDao;
import com.sq.partner.manager.mybatis.model.HaidaStageInfoVo;
import com.sq.partner.manager.util.Page;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * author lxy
 * 2022/4/12 17:55
 */
@Repository
public class HaidaStageInfoDaoImpl extends BaseDaoImpl implements HaidaStageInfoDao {
	
	@Override
	public Page queryHaidaStagePage(Page page) throws Exception {
		Map<String, Object> map = (Map<String, Object>) page.getType();
		long queryCount = (Long) this.query("queryCountHaidaStageByMap", map);
		List<HaidaStageInfoVo> list = queryList("queryHaidaStageInfoByMap", map);
		page.setTotal(queryCount);
		page.setData(list);
		return page;
	}
	
	@Override
	public long queryHaidaStageCount(Map<String, Object> map) throws Exception {
		return 0;
	}
	
	@Override
	public List<HaidaStageInfoVo> queryHaidaStageInfoList(Map<String, Object> map) throws Exception {
		return queryList("queryHaidaStageInfoByMap", map);
	}
}
